package com.xiaogang.ggfw.config.error;

import lombok.Data;

/**
 * @ProjectName : ggfw
 * @作者 : 侯小刚
 * @描述 :
 * @创建日期 : 2023/8/9 15:27
 */
@Data
public class GgfwException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    private Integer code;
    private String message;

    public GgfwException(String message) {
        this(message, 500);
    }

    public GgfwException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public GgfwException(String message, Throwable e) {
        super(message, e);
        this.message = message;
        this.code = 500;
    }

}
